const axios = require('axios')

module.exports = {
  get: (req, res) => {
    axios
      .get(
        'https://u95167-bd74-2aef8085.westx.seetacloud.com:8443/flashsummary/voices?language=zh-CN&tag_id=0'
      )
      .then((e) => {
        // 这个io 直行耗时任务 必须在 cc前面
        res.io('answer', e.data.data)
        res.cc({ data: req.query.msg })
      })
  },
}
